<?php /* Smarty version Smarty-3.0.7, created on 2012-10-09 20:56:37
         compiled from "_temp/mctourist/blocks/trong_timkiem/index.mct" */ ?>
<?php /*%%SmartyHeaderCode:603250741f05383876-10325383%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ea96d3fe720e442133c99239203d72e2cbbe1f71' => 
    array (
      0 => '_temp/mctourist/blocks/trong_timkiem/index.mct',
      1 => 1349367564,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '603250741f05383876-10325383',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
  <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('base_path')->value;?>
/css/tab.css" />
  <style>
  .vungmien{
    margin-top: 20px;
    display:block;
    padding-left: 5px;
  }
  .botton_search{
    text-align: center;
    margin-left: 85px;
    margin-bottom: 10px;
  }
  .inputtin{
    float: none !important;
    height: 19px !important;
    margin-bottom: 15px !important;
    margin-left: 15px !important;
    margin-top: 10px !important;
    width: 100px !important;
  }
  </style>
  <script>
  
  </script>
 <!-- style dat tour -->
   <script> call_tab();</script>  
           <!-- start module  video -->
                <div class="mod_timkiem" style="position:relative;	z-index:99999; display: <?php if ($_smarty_tpl->getVariable('act')->value=='searchTour'){?>block;<?php }else{ ?>none;<?php }?>">
                    <div class="tab_tim_kiem">
                        <ul class="tabs">
                            <li class="active" ><a href="#tab1">Tìm kiếm</a></li>
                            <li ><a href="#tab2">Google</a></li>
                        </ul>
                        <div class="tab_container">
                            <div id="tab1" class="tab_content"  >
                                <div class="tour_tn" >
                                        <span id="radio_tb">
                                            <input type="radio" <?php if ($_smarty_tpl->getVariable('linkid')->value[0]!=1){?>checked="true"<?php }?> onclick="showtimkem(2);" value="2" name="tour"  /> Tour trong nước
                                        </span>
                                        <span id="radio_ng">
                                            <input type="radio" <?php if ($_smarty_tpl->getVariable('linkid')->value[0]==1){?>checked="true"<?php }?> onclick="showtimkem(1);" value="1" name="tour"/>Tour nước ngoài
                                        </span>
                                        <div id="trongnuoc" <?php if ($_smarty_tpl->getVariable('idtournuocngoai')->value){?>style= "display: none;"<?php }?>>
                                            <span class="vungmien"> Vùng miền:  
                                                    <select name="vungmien" id="vungmien" style="width: 175px;margin-left: 23px;">
                                                        <option value="0"> Tất cả  </option>
                                                        <?php  $_smarty_tpl->tpl_vars['tentrong'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('trongnuoc')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['tentrong']->key => $_smarty_tpl->tpl_vars['tentrong']->value){
?>
                                                        <option <?php if ($_smarty_tpl->getVariable('linkid')->value[1]==$_smarty_tpl->tpl_vars['tentrong']->value['tme_id']){?>selected="true"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['tentrong']->value['tme_id'];?>
"> <?php echo $_smarty_tpl->tpl_vars['tentrong']->value['tme_title'];?>
</option>
                                                        <?php }} ?>
                                                    </select>
                                             </span>
                                             <span class="vungmien"> Điểm khởi hành:  
                                                    <select name="diemkhoihanh" id="diemkhoihanh" style="width: 175px;">
                                                        <option value="0"> Tất cả  </option>
                                                        <?php  $_smarty_tpl->tpl_vars['diemkh'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('diemkhoihanh')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['diemkh']->key => $_smarty_tpl->tpl_vars['diemkh']->value){
?>
                                                        <option <?php if ($_smarty_tpl->getVariable('linkid')->value[2]==$_smarty_tpl->tpl_vars['diemkh']->value['tkh_id']){?>selected="true"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['diemkh']->value['tkh_id'];?>
"> <?php echo $_smarty_tpl->tpl_vars['diemkh']->value['tkh_name'];?>
</option>
                                                        <?php }} ?>
                                                    </select>
                                             </span>
                                             <br /> <input type="image" class="botton_search" onclick="searchtour(2)" name="timkemtour" src="<?php echo $_smarty_tpl->getVariable('base_path')->value;?>
/images/tim.gif" />
                                        </div>
                                        <!-- tour nuoc ngoai -->
                                        <div id="nuocngoai" <?php if ($_smarty_tpl->getVariable('idtournuocngoai')->value){?>style="display: block;"<?php }?> style="display: none;">
                                            <span class="vungmien"> Khu vực:  
                                                    <select name="khuvuc" id="khuvuc" class="inputbox" style="width: 175px;margin-left: 34px;">
                                                        <option value="0"> Tất cả  </option>
                                                        <?php  $_smarty_tpl->tpl_vars['tenngoai'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('nuocngoai')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['tenngoai']->key => $_smarty_tpl->tpl_vars['tenngoai']->value){
?>
                                                                <option <?php if ($_smarty_tpl->getVariable('linkid')->value[1]==$_smarty_tpl->tpl_vars['tenngoai']->value['tme_id']){?>selected="true"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['tenngoai']->value['tme_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['tenngoai']->value['tme_title'];?>
</option>                                                              
                                                        <?php }} ?>
                                                    </select>
                                             </span>
                                             <span class="vungmien"> Điểm khởi hành:  
                                                    <select name="diemkhoihanh123" id="diemkhoihanh123" style="width: 175px;">
                                                        <option value="0"> Tất cả  </option>
                                                        <?php  $_smarty_tpl->tpl_vars['diemkh'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('diemkhoihanh')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['diemkh']->key => $_smarty_tpl->tpl_vars['diemkh']->value){
?>
                                                        <option <?php if ($_smarty_tpl->getVariable('linkid')->value[2]==$_smarty_tpl->tpl_vars['diemkh']->value['tkh_id']){?>selected="true"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['diemkh']->value['tkh_id'];?>
"> <?php echo $_smarty_tpl->tpl_vars['diemkh']->value['tkh_name'];?>
</option>
                                                        <?php }} ?>
                                                    </select>
                                             </span>
                                             <br />
                                             <input type="image" class="botton_search" onclick="searchtour(1)" name="timkemtour" src="<?php echo $_smarty_tpl->getVariable('base_path')->value;?>
/images/tim.gif" />
                                        </div>                                        
                                        
                                </div>
                            </div>
                            <!-- tab 2 -->
                            <div id="tab2" class="tab_content"   style="display: none;"  >
                                        
                                        <!-- Put the following javascript before the closing </head> tag. -->
                            <script>
                            (function() {
                            var cx = '001136557165792345877:dw_5kb1jtic';
                            var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
                            gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
                            '//www.google.com.vn/cse/cse.js?cx=' + cx;
                            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
                            })();
                            </script>
                            
                            <!-- Place this tag where you want both of the search box and the search results to render -->
                            <gcse:search linkTarget="_self"></gcse:search>
                            </div>
                        </div>
                    </div>
                </div>
            <!--  end module vide--->
            
            <script>
                $(document).ready(function(){                    
                    <?php if ($_smarty_tpl->getVariable('linkid')->value[0]==1){?>showtimkem(1);<?php }else{ ?>showtimkem(2);<?php }?>                    
                });
            </script>
            